<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 7/10/21
 * Time: 10:51 PM
 */

namespace app\api\model;


use think\model\concern\SoftDelete;

class SjActivity extends BaseModel
{
    use SoftDelete;


    public function imgs()
    {
        return $this->hasMany('SjActivityImg','activity_id','id')->order('id asc');
    }

    public function items()
    {
        return $this->hasMany('SjActivityItem','activity_id','id')->order('id asc');
    }

    public function msg()
    {
        return $this->belongsTo('SjMsg','sj_msg_id');
    }


}